﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using XLua;

[Hotfix]
public class EmailPanel : MonoBehaviour
{
    Text txtTitle;
    Text txtMain;
    Text txtDate;
    // Start is called before the first frame update
    void Start()
    {
        txtTitle=transform.Find("txtTitle").GetComponent<Text>();
        txtMain=transform.Find("txtMain").GetComponent<Text>();
        txtDate=transform.Find("txtDate").GetComponent<Text>();
        InitData();
    }

    void InitData()
    {
        txtTitle.text="福利大放送";
        txtMain.text="亲爱的玩家们，本次福利为1000钻石，感谢大家的支持。";
        txtDate.text="2008年8月10日";
    }

    public void Close()
    {
        Destroy(this.gameObject);
    }

    public void Get()
    {
        Debug.Log("领取1000钻石成功！");
    }
}
